package com.caiyouxi.boss.buser.mapper;

import com.caiyouxi.boss.buser.model.SysDepartmentsBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by Administrator on 2017/10/25.
 */
@Mapper
public interface SysDepartmentsMapper {

    //查询通过order_num排序所有的部门信息
    public List<SysDepartmentsBean> get_all_department(SysDepartmentsBean bean);

    //添加部门信息
    public int insert_department(SysDepartmentsBean bean);

    //通过部门id获取部门信息
    public SysDepartmentsBean get_departments_by_id(SysDepartmentsBean bean);


    //修改部门信息
    public int update_department(SysDepartmentsBean bean);

    //删除部门信息
    public int delete_department(SysDepartmentsBean bean);


    //查出添加的用户是否存在
    public int add_user_is_exist(SysDepartmentsBean bean);
    //修改的用户是否是自己
    public int update_user_is_exist(SysDepartmentsBean bean);

}
